let path = require("path");
let logger = require('log4js').getLogger('router');

module.exports = function (app) {
    /** http */
    app.use("/", function (req, res, next) {
        if (/^\/(api|node_modules|static)/.test(req.path)) {
            next();
        } else {
            res.sendFile(path.join(__dirname, "../dist/index.html"));
        }
    });

    v1(app);
    openv1(app);
};

/** 认证 */
function v1(app) {
    

}

/** 开放 */
function openv1(app) {

}
